Fitting mode if has a syntax very similar to the one in C-shell. It requires the keywords then and endif and supports else constructions. The difference resides in the fact that the conditional statement has to follow C-calculator mode grammar and syntax and thus has a richer set of operators. The `$' expansion operator is therefore not needed in the conditional statement, as it is in C-shell conditional statements. All active variables, constants, and their string counterparts, are directly available to the conditional statement. Note that the fmode-statements can also contain C-calculator mode commands (even possibly including C-calculator mode if's!).
if (conditions) then
fmode-statements
endif
or, using the else constructions,
if (conditions) then
fmode-statements
else if (conditions) then
fmode-statements
else
fmode-statements
endif
while, foreach, macro